package Dao;

import Entity.User;
import java.util.List;

public interface UserDaoImpl {
    public List<User> findAllUser();
    public User findByNumber(String number);        //找到所有用户
    public List<User> findByStatus(int status);     // 根据身份找到所有用户，1学生2老师3管理员

    //new add
    public User findByName(String name); 
    public boolean addUser(User user);
    
    
    
    
    
    public User login(String name,String pwd);   
  
    public boolean updateUser(User user);
    public boolean deleteUser(User user);
}
